<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="com.iwords.service.object.SysLibWordsEntity"%><html>
<head>
<title>列表</title>
</head>
<body>
<form method="post" action="wordsManager" name="searchForm"><span
	style="color: red;">这是第<%=(Integer.parseInt((String) request.getAttribute("toPage")) + 1)%>页
<br>
</span> <%
 	long count = Long.parseLong((String) request.getAttribute("count"));

 	long p = 0;
 	if (count % 100 == 0) {
 		p = count / 100;

 	} else {
 		p = (count / 100) + 1;
 	}

 	for (int i = 0; i < p; i++) {
 %> <a href="wordsManager?toPage=<%=i%>"> <%=(i + 1)%></a>
&nbsp;&nbsp;&nbsp;&nbsp; <%
 	}
 %>
<table border=1>

	<tr>
		<td>单词</td>
		<td>匹配句数目</td>
		<td>匹配操作</td>
	</tr>





	<%
		int toPage = Integer.parseInt((String) request.getAttribute("toPage"));
	%>
	<%
		java.util.List<SysLibWordsEntity> list = (java.util.List<SysLibWordsEntity>) request.getAttribute("words");
		if (list != null) {
			for (int i = 0; i < list.size(); i++) {
				SysLibWordsEntity word = list.get(i);
	%>
	<tr>


		<td><%=word.getSpelling()%></td>
		<td><%=word.getNum()%></td>

		<td><a
			href="wordsManager?type=pipei&spelling=<%=word.getSpelling()%>&wordid=<%=word.getWordid()%>&toPage=<%=toPage%>">词句匹配</a></td>
	</tr>


	<%
		}
		}
	%>

</table>
</form>
</body>
</html>